<style>
    .ngdialog.ngdialog-theme-default .ngdialog-content{
        width:60%!important;
    }
    .input1{
        line-height:1;
        display:inline!important;
        width:auto!important;
    }
</style>

<div id="selectFilter" class="ngdialog ngdialog-theme-default ng-scope" role="alertdialog">
    <div class="ngdialog-overlay">
    </div>
    <div class="ngdialog-content" role="document" style="padding:0 0 0 0">
        <div class="box border primary">
            <div class="box-title" style="text-align: center">
                <h4>筛选：{{filterName}}</h4>
            </div>
            <div class="box-body clearfix">
                <!--客户-->
                <div ng-if="type==1">
                    <input class="form-control" ng-model="searchUserContactName" placeholder="搜索"/>
                    <table class="datatable table table-hover dataTable">
                        <tbody>
                        <tr ng-repeat="item in customList|filter:searchUserContactName" ng-click="chooseCustom(item)">
                            <td style="width:100%;background-color: {{item.select?'grey':''}}">{{item.name}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!--合作伙伴-->
                <div ng-if="type==6">
                    <input class="form-control" ng-model="searchUserContactName" placeholder="搜索"/>
                    <table class="datatable table table-hover dataTable">
                        <tbody>
                        <tr ng-repeat="item in partnerList|filter:searchUserContactName" ng-click="choosePartner(item)">
                            <td style="width:100%;background-color: {{item.select?'grey':''}}">{{item.name}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!--竞争对手-->
                <div ng-if="type==7">
                    <input class="form-control" ng-model="searchUserContactName" placeholder="搜索"/>
                    <table class="datatable table table-hover dataTable">
                        <tbody>
                        <tr ng-repeat="item in enemyList|filter:searchUserContactName" ng-click="chooseEnemy(item)">
                            <td style="width:100%;background-color: {{item.select?'grey':''}}">{{item.name}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <!--地域-->
                <div ng-if="type==2"  style="height: inherit">
                    <div class="col-md-12" style="height: inherit">
                        <div class="col-md-4" ng-repeat="item in areaList">
                            <button class="{{item.select?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width: 100%" ng-click="chooseArea(item)">{{item.name}}</button>
                            <div class="col-md-12" style="height: 30px"></div>
                        </div>
                    </div>
                </div>
                <!--标签-->
                <div ng-if="type==5">
                    <div class="col-md-12">
                        <div class="col-md-4" ng-repeat="item in tagList">
                            <button class="{{item.select?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width: 100%" ng-click="chooseTag(item)">{{item.name}}</button>
                            <div class="col-md-12" style="height: 30px"></div>
                        </div>
                    </div>
                </div>
                <!--状况-->
                <div ng-if="type==9">
                    <div class="col-md-12">
                        <div class="col-md-4" ng-repeat="item in statusList">
                            <button class="{{item.select?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width: 100%" ng-click="chooseStatus(item)">{{item.name}}</button>
                            <div class="col-md-12" style="height: 30px"></div>
                        </div>
                    </div>
                </div>
                <!--状态-->
                <div ng-if="type==10">
                    <div class="col-md-12">
                        <div class="col-md-4" ng-repeat="item in stateList">
                            <button class="{{item.select?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width: 100%" ng-click="chooseState(item)">{{item.name}}</button>
                            <div class="col-md-12" style="height: 30px"></div>
                        </div>
                    </div>
                </div>
                <!--地点-->
                <!--<city-four-select province="chooseProvince" city="chooseCity" district="chooseDistrict" street="chooseStreet"></city-four-select>-->

                <!--<div ng-if="type==3">-->
                <div ng-show="type==3">
                    <div class="col-md-12">
                        <city-four-select province="choseAddress.province" city="choseAddress.city" district="choseAddress.district" street="choseAddress.street"></city-four-select>
                        <!--&lt;!&ndash;<city-four-select province="x.province" city="x.city" district="x.district" street="x.street"></city-four-select>&ndash;&gt;-->
                        <div></div>
                    </div>
                </div>
                <!--财季-->
                <div ng-if="type==8">
                    <div class="col-md-12">
                        <div class="col-md-6" style="text-align: right">
                            起始财季
                            <select class="form-control input1" ng-model="$parent.$parent.startYear" ng-options="item for item in yearList"></select>年
                        </div>
                        <div class="col-md-4">
                            <select class="form-control input1" ng-model="$parent.$parent.startSeason" ng-options="item.value as item.name for item in seasonList"></select>财季
                        </div>
                    </div>
                    <div class="col-md-12" style="height: 20px;"></div>
                    <div class="col-md-12">
                        <div class="col-md-6" style="text-align: right">
                            终止财季
                            <select class="form-control input1" ng-model="$parent.$parent.endYear" ng-options="item for item in yearList"></select>年
                        </div>
                        <div class="col-md-4">
                            <select class="form-control input1" ng-model="$parent.$parent.endSeason" ng-options="item.value as item.name for item in seasonList"></select>财季
                        </div>
                    </div>
                    <div class="col-md-12" style="height: 20px;"></div>
                    <div style="text-align: center">
                        <button class="btn btn btn-info" ng-click="resetSeason()" style="line-height: 1;width:100px">重置财季</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>